package com.yuzhi.common.contant;

import cn.hutool.core.text.CharSequenceUtil;

/**
 * 通用常量信息
 *
 * @author auto
 */
public interface Constants {

    /**
     * UTF-8 字符集
     */
    String UTF8 = "UTF-8";

    /**
     * GBK 字符集
     */
    String GBK = "GBK";

    /**
     * www主域
     */
    String WWW = "www.";

    /**
     * http请求
     */
    String HTTP = "http://";

    /**
     * https请求
     */
    String HTTPS = "https://";

    /**
     * 通用成功标识
     */
    String SUCCESS = "0";

    /**
     * 通用失败标识
     */
    String FAIL = "1";

    /**
     * 登录成功
     */
    String LOGIN_SUCCESS = "Success";

    /**
     * 注销
     */
    String LOGOUT = "Logout";

    /**
     * 注册
     */
    String REGISTER = "Register";

    /**
     * 登录失败
     */
    String LOGIN_FAIL = "Error";

    /**
     * 验证码有效期（分钟）
     */
    Integer CAPTCHA_EXPIRATION = 5;


    /**
     * 二维码有效期（分钟）
     */
    Integer QRCODE_EXPIRATION = 5;

    /**
     * 令牌
     */
    String TOKEN = "token";

    /**
     * 删除标识-未删除
     */
    Integer UNDELETED = 0;

    /**
     * 删除标识-已删除
     */
    Integer DELETED = 1;

    /**
     * 通用 0 字符串标识
     */
    String ZERO_STR = "0";

    /**
     * 通用 1 字符串标识
     */
    String ONE_STR = "1";

    /**
     * 通用 2 字符串标识
     */
    String TWO_STR = "2";

    /**
     * 通用 3 字符串标识
     */
    String THREE_STR = "3";

    /**
     * 通用空字符串
     */
    String EMPTY_STR = CharSequenceUtil.EMPTY;

    /**
     * 通用 222222 字符串标识
     */
    String SIX_TWO_STR = "222222";

    /**
     * 通用 diseaseName 字符串标识
     */
    String DISEASE_NAME = "病症已删除";


    public static final String LON_LAT_STR = "({},{})";

    public static final String LON_LAT_EXCEL_STR = "{},{}";

    public static final String TO_POINT_STR = "POINT({} {})";

    public static final String POINT_TYPE = "POINT";

    public static final String POINT_SPLIT = "POINT(";

    public static final String MULTI_LINE_STRING_TYPE = "MULTILINESTRING";

    public static final String MULTI_LINE_STRING_TYPE_SPLIT = "MULTILINESTRING((";

    public static final String DOUBLE_BRACKETS = "{} {}";

    public static final String SPACE_STR = " ";

    public static final String TO_MULTI_LINE_STRING_STR = "MULTILINESTRING(({}))";

    public static final String MULTI_POLYGON_TYPE = "MULTIPOLYGON";

    public static final String MULTI_POLYGON_TYPE_SPLIT = "MULTIPOLYGON(((";

    public static final String TO_MULTI_POLYGON_STR = "MULTIPOLYGON((({})))";

    String SQL_LIMIT_ONE = "limit 1";
    String SQL_LIMIT_TEN = "limit 10";

    /**
     * 污水厂数量
     */
    String  SEWAGE_FACTORY_NUM  = "sewage_factory_num";

    /**
     * 污水分区数量
     */
    String  SEWAGE_DISTRICT_NUM  = "sewage_district_num";

    /**
     * 污水泵站数量
     */
    String  SEWAGE_PUMP_NUM  = "sewage_pump_num";

    /**
     * 排水分区数量
     */
    String  DRAINAGE_DISTRICT_NUM  = "drainage_district_num";

    /**
     * 管网长度
     */
    String  PIPE_LENGTH_NUM  = "pipe_length_num";

}

